#ifndef IRC_CORE_H 
#define IRC_CORE_H

#include <stdio.h>
#include <stdlib.h>
#include <pthread.h>

#include "socket.h"
#include "input_thread.h"
#include "output_thread.h"
#include "plugin_control.h"

struct IRC_core
{
	char *server_name;
	int port_number;
	int (*exec)();
	struct socket *socket_t;
	struct input_thread *input_thread_t;
	struct output_thread *output_thread_t;
	struct plugin_control *plugin_control_t;
};

struct IRC_core * new_IRC_core( char *server, char *port );
void delete_IRC_core();
void host_disconnected_IRC_core();

#endif /* IRC_CORE_H */
